package test;

import org.springframework.context.annotation.Bean;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * user:likai
 * Date:2023-01-27
 * Time:20:56
 */
public class ServiceDemo {
    @Bean(name = "user2")
    public User user2(){
        User user =new User();
        user.setAge(20);
        return user;
    }
}
